<?php
/**
 * Created by PhpStorm.
 * User: sw
 * Date: 2018/9/14
 * Time: 18:09
 */

namespace util;


class HttpHandleDiBuilder extends DiBuilder
{
    protected function buildDi()
    {
        // TODO: Implement buildDi() method.
        $this->di->set('Request', "util\Request")
            ->setArguments(array('%controller%','%action%','%_W%','%_GPC%'))
        ;

        $this->di->set('Dispatcher',"util\Dispatcher")
            ->setArguments(array(new DiMock('Request')))
        ;

        return $this->di;
    }
}